<{extend name="base" /}>
<{block name="body"}>
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">权限组</li>
            <li class=""><a href="<{:url('admin/auth_group/add')}>">添加权限组</a></li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="width: 30px;">ID</th>
                        <th>名称</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <{foreach name="auth_group_list" item="vo"}>
                    <tr>
                        <td><{$vo.id}></td>
                        <td><{$vo.title}></td>
                        <td><{php}>echo $vo['status']==1 ? '启用' : '禁用';<{/php}></td>
                        <td>
                            <a href="<{:url('admin/auth_group/auth',['id'=>$vo['id']])}>" class="layui-btn layui-btn-mini">授权</a>
                            <a href="<{:url('admin/auth_group/edit',['id'=>$vo['id']])}>" class="layui-btn layui-btn-normal layui-btn-mini">编辑</a>
                            <a href="<{:url('admin/auth_group/delete',['id'=>$vo['id']])}>" class="layui-btn layui-btn-danger layui-btn-mini ajax-delete">删除</a>
                        </td>
                    </tr>
                    <{/foreach}>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<{/block}>